<{extend name="index/header" /}>
<{block name="body"}>
    <style type="text/css">
    .w3_agile_mail_grid textarea {
        outline: none;
        width: 100%;
        background: #f5f5f5;
        color: #111;
        padding: 1em;
        font-size: 14px;
        border: 1px solid #e4e4e4;
        min-height: 236px;
        font-weight: 600;
        margin: 2em 0 0;
    }

    .w3_mail_grids input[type="submit"]:hover {
        background: #1a821c;
    }
    .w3_mail_grids input[type="submit"] {
        outline: none;
        color: #fff;
        letter-spacing: 5px;
        font-size: 1em;
        border: none;
        text-transform: uppercase;
        width: 100%;
        font-weight: 600;
        background: #111;
        padding: 0.9em;
        margin-top: 2em;
        margin-bottom: 4em;
    }
    </style>
    <!--[if lt IE 9]>
	    <script src="__INDEX__/js/html5shiv.js"></script>
	    <script src="__INDEX__/js/respond.min.js"></script>
    <![endif]-->       

    <section id="page-breadcrumb">
        <div class="vertical-center sun">
             <div class="container">
                <div class="row">
                    <div class="action">
                        <div class="col-sm-12">
                            <h1 class="title">传记详情</h1>
                            <p>Biographical details</p>
                        </div>
                    </div>
                </div>
            </div>
        </div>
   </section>

    <section id="blog-details" class="padding-top">
        <div class="container">
            <div class="row">
                <div class="col-md-9 col-sm-7">
                    <div class="row">
                         <div class="col-md-12 col-sm-12">
                            <div class="single-blog blog-details two-column">
                                <div class="post-thumb">
                                    <a href="#">
                                        <img src="<{$zhuanji.zhuanjiphoto}>" class="img-responsive" alt="">
                                    </a>
                                    <div class="post-overlay">
                                        <span class="uppercase">
                                            <a href="#"><{$zhuanji.addtime|date="d",###}>
                                            <br><small><{$zhuanji.addtime|date="m",###}>月</small></a>
                                        </span>
                                    </div>
                                </div>
                                <div class="post-content overflow">
                                    <h2 class="post-title bold">
                                        <a href="#"><{$zhuanji.zhuanjititle}></a></h2>
                                    <h3 class="post-author"><a href="#">发起人:<{$zhuanji.nickname}></a></h3>
                                    <p><{$zhuanji.zhuanjicontent}></p>
                                    <div class="post-bottom overflow">
                                        <ul class="nav navbar-nav post-nav">
                                            <li><a href="#"><i class="fa fa-tag"></i>标签</a></li>
                                            <li><a href="#"><i class="fa fa-heart"></i>点赞数:<{$zhuanji.zhuanjizan}></a></li>
                                            <li><a href="#"><i class="fa fa-comments"></i><{$zhuanji.zhuanjipinlun}>条评论</a></li>
                                        </ul>
                                    </div>
                                    <br/>
                                    <div class="response-area">
                                    <h2 class="bold">最新评论</h2>
                                    <ul class="media-list">
                                        <{if condition="$comment neq ''"}>
                                        <{volist name="comment" id="vo"}>
                                        <li class="media">
                                            <{if condition="$vo.huifuid eq 0"}>
                                            <div class="post-comment">
                                                <a class="pull-left" href="#" style="width: 150px;">
                                                    <img class="media-object" src="<{$vo.photo}>" alt="" style="width:100%;border:none;">
                                                </a>
                                                <div class="media-body" onclick="hf(this)" hfid="<{$vo.commentid}>" huifuuserid="<{$vo.userid}>" hfuser="<{$vo.nickname}>">
                                                    <span><i class="fa fa-user"></i><a href="#" id="reply"><{$vo.nickname}></a></span>
                                                    <p><{$vo.comment}></p>
                                                    <ul class="nav navbar-nav post-nav">
                                                        <li><a href="#"><i class="fa fa-clock-o"></i><{$vo.commenttime|date="Y-m-d H:i:s",###}></a></li>
                                                    </ul>
                                                </div>
                                            </div>
                                        <{else/}>
                                        <div class="media-body" style="padding:0px;width:70%;float: right;" onclick="hf(this)" hfid="<{$vo.commentid}>" huifuuserid="<{$vo.userid}>" hfuser="<{$vo.nickname}>">
                                            <span>
                                                <i class="fa fa-user"></i>
                                                <a href="javascript:;"><{$vo.nickname}></a>
                                                &nbsp;回复&nbsp;
                                                <a href="javascript:;"><{$vo.huifunickname}></a>
                                            </span>
                                            <p><{$vo.comment}></p>
                                                <ul class="nav navbar-nav post-nav">
                                                    <li><a href="#"><i class="fa fa-clock-o"></i><{$vo.commenttime|date="Y-m-d H:i:s",###}></a></li>
                                                </ul>
                                        </div>
                                        <{/if}>
                                        </li>
                                        <{/volist}>
                                        <{else /}>
                                        <li class="media">
                                            <div class="post-comment">
                                                <div class="media-body">
                                                    <p>暂无评论</p>
                                                </div>
                                            </div>
                                        </li>
                                        <{/if}>
                                    </ul>                   
                                </div>
                                </div>
                            </div>
                        </div>
                    </div>
                 </div>
                <div class="col-md-3 col-sm-5">
                    <div class="sidebar blog-sidebar">
                        <div class="sidebar-item  recent">
                            <h3>热门公益</h3>
                            <div class="media">
                                <div class="pull-left">
                                    <a href="#"><img src="__INDEX__/images/portfolio/project1.jpg" alt=""></a>
                                </div>
                                <div class="media-body">
                                    <h4><a href="#">国家提倡和鼓励为帮助妇女开展的社会公益活动</a></h4>
                                    <p>2017-10-10</p>
                                </div>
                            </div>
                            <div class="media">
                                <div class="pull-left">
                                    <a href="#"><img src="__INDEX__/images/portfolio/project2.jpg" alt=""></a>
                                </div>
                                <div class="media-body">
                                    <h4><a href="#">国家提倡和鼓励为帮助妇女开展的社会公益活动</a></h4>
                                    <p>2017-10-10</p>
                                </div>
                            </div>
                            <div class="media">
                                <div class="pull-left">
                                    <a href="#"><img src="__INDEX__/images/portfolio/project3.jpg" alt=""></a>
                                </div>
                                <div class="media-body">
                                    <h4><a href="#">国家提倡和鼓励为帮助妇女开展的社会公益活动</a></h4>
                                    <p>2017-10-10</p>
                                </div>
                            </div>
                        </div>
                        <div class="sidebar-item tag-cloud">
                            <h3>热门标签</h3>
                            <ul class="nav nav-pills">
                                <li><a href="#">活动1</a></li>
                                <li><a href="#">活动2</a></li>
                                <li><a href="#">活动3</a></li>
                                <li><a href="#">活动4</a></li>
                                <li><a href="#">活动5</a></li>
                            </ul>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        <div class="container">
            <h3 class="w3l_head w3l_head1">回复传记</h3>
            <div class="w3_mail_grids">
                <form action="<{:url('zhuanji/zhuanjicomment')}>" method="post">
                    <div class="col-md-10 w3_agile_mail_grid">
                        <{if condition="$Think.session.userid eq ''"}>
                        <div class="container" name="zhuanjiid" value="<{$zhuanji.zhuanjiid}>" style="width: 920px;height: 236px;border: 2px solid #999;text-align: center;line-height: 236px;resize: none;">
                           您还没有登录，无法进行评论。点此进行<a href="<{:url('register/index#log')}>">登录</a>
                       </div>
                        <{else/}>
                        <input type="hidden" name="zhuanjiid" value="<{$zhuanji.zhuanjiid}>">
                        <textarea name="comment" placeholder="回复内容" required="" style="resize: none;" id="hf"></textarea>
                        <input type="hidden" name="huifuid" value="0" id="huifuid">
                        <input type="hidden" name="huifuuserid" value="0" id="huifuuserid">
                        <input type="submit" value="提交">
                        <{/if}>
                    </div>
                    <div class="clearfix"></div>
                </form>
            </div>
        </div>
    </section>
    <script type="text/javascript">
        function hf(e){
            var huifuid = $(e).attr('hfid');
            var hfuser= $(e).attr('hfuser');
            var huifuuserid= $(e).attr('huifuuserid');
            $('#huifuid').val(huifuid);
            $('#huifuuserid').val(huifuuserid);
            $('#hf').attr('placeholder','回复'+hfuser);
         }
    </script>
    <{/block}>